package com.my.study.structures.stack;

/**
 * @author Carlos
 * @version 1.0
 * @Description 获取优先级
 * @date 2021/6/25 7:40
 **/
public interface IPriorityValue {

    int SUB = 1;
    int ADD = 1;
    int MUL = 2;
    int DIV = 2;


    /**
     * 获取优先级
     *
     * @param operator 操作符
     * @return
     */
    public int getPriorityValue(String operator);
}
